package com.x.aoki.openfeign.service;

import com.x.aoki.common.pojo.Payment;
import com.x.aoki.common.utils.CR;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author caoy
 * @date 2025-02-17 14:32:29
 */
@Component
@FeignClient(value = "X-PAYMENT-PROVIDER")
public interface PaymentFeignService {
    @GetMapping("/payment/get/{id}")
    public CR<Payment> getPaymentById(@PathVariable("id")Long id);

    @GetMapping("/payment/feign/timeout")
    public String paymentTimeout();
}
